﻿using AMAP.Domain;
using AMAP.ServiceInterfaces.Common;
using System.Security.Cryptography;

namespace AMAP.ServiceInterfaces
{
    public interface ISupplierService : IRepositoryService<Supplier>
    {
        /// <summary>
        /// Gets and returns the supplier designed by the given Email address
        /// </summary>
        /// <param name="Email">Supplier's email address</param>
        /// <returns>Supplier POCO designed by the given address email or null if no such supplier exists</returns>
        Supplier GetByEmail(string Email);
    }
}
